package com.liumuxian.user.pojo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;


@Data
@Entity
@Table(name="tb_user")
public class User implements Serializable {
    @Id
    @Column(name = "id",length = 20)
    private String id;
    @Column(name = "mobile")
    private String mobile;//手机号码
    /** 微信号 */
    private String wxaccount;

    /** 微信小程序openid */
    private String wxopenid;
    @Column(name = "password")
    private String password;//密码
    @Column(name = "nickname",length = 100)
    private String nickname;//昵称
    @Column(name = "sex",length = 2)
    private String sex;//性别
    @Column(name = "birthday")
    private Date birthday;//出生年月日
    @Column(name = "site",length = 100)
    private String site;
    @Column(name = "language",length = 20)
    private String language;
    @Column(name = "avatar")
    private String avatar;//头像
    @Column(name = "email")
    private String email;//E-Mail
    @Column(name = "integral",length = 20)
    private long integral;//积分
    @Column(name = "regdate")
    private Date regdate;//注册日期
    @Column(name = "updatedate")
    private Date updatedate;//修改日期
    @Column(name = "lastdate")
    private Date lastdate;//最后登陆日期
    @Column(name = "online",length = 20)
    private Long online;//在线时长（分钟）
    @Column(name = "state",length = 1)
    private Integer state;//用户状态

}
